﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TKToXML.Models
{
    public class Lop
    {
        public virtual int Id { get; set; }
        public virtual int Nam { get; set; }
        public virtual string Name { get; set; }

        public virtual IList<SinhVien> SinhViens { get; set; }

        public override bool Equals(object obj)
        {
            if (obj.GetType() != typeof(Lop))
                return false;

            var other = obj as Lop;
            return Id == other.Id && Nam == other.Nam;
        }

        public override int GetHashCode()
        {
            int hash = 13;
            hash = (hash * 7) + Id.GetHashCode();
            hash = (hash * 7) + Nam.GetHashCode();

            return hash;
        }
    }   
}
